package scr;

public class Example19 {
    public static void main(String[] args) {
        printRectangle(3,5);        //调用printRectangle()方法实现打印矩形
        printRectangle(2,4);
        printRectangle(6,10);
    }
    public static void printRectangle(int height,int width){
        for (int i = 0; i<height; i++){
            System.out.println("*");
        }
        System.out.println("\n");
    }
}
